package org.dong.base.jvm.gc;

import java.util.ArrayList;
import java.util.List;

public class GCDemo1 {

    public static void main(String[] args) throws InterruptedException {
        //-Xms10M -Xmx20M -verbose:gc -XX:+PrintGCDetails
        Byte[] data = new Byte[1024 * 1024];
        List<Byte[]> datas = new ArrayList<>();
        while (true) {
            datas.add(data);
            Thread.sleep(10);
        }
    }
}
